Control tasks and functional architecture of the LISA pathfinder drag-free system