Files Controller refactor

Moved our modified code from comfy files controller to our own CMS application.
Add some specs to the files controller too.
@stevenwilkin agreed! But many spec files are requiring spec_helper. I think it's better to remove from every spec file for consistency and create a other PR about this, :).