update gems, add bower-rails, refactoring