before_filter authentication and friendly redirects
added rails_12factor