adds gon for rails-js communication, adds proper flash messages, adds user login, replaces js with bower versions when possible