Files Controller refactor

Moved our modified code from comfy files controller to our own CMS application.
Add some specs to the files controller too.
Yeah, this style was used a long time ago in other ruby versions. I didn't realize the Ruby 1.9+ don't need to add '\' to end. Fixed!