Moved filesystem init to app controller.
Save file link record when writing to filesystem
Couch/pouch sync improvements