refactored app.rb

Fixes #31.

@jnicklas Hey, I have tried to refactor [app.rb](https://github.com/kevivmatrix/refile/blob/refactor_rackfile/lib/refile/app.rb) a bit. If you like what I have done, I can refactor the code further. Just want to check with you if I am going in the right direction.