Pull out the main 'filesystem' type, outside the Lwt monad

Signed-off-by: David Scott <dave.scott@eu.citrix.com>