Bordered Floer homology and the spectral sequence of a branched double cover I. (30th July 2014)