Added jquery-ui-rails dependency and updated pages model

The jquery-ui-rails dependency causes it to be installed even when not in the user's gemfile but for some reason is inaccessible. Maybe this should be a different type of dependency? I'm not familiar enough with the Gem library to figure it out right now.
Ruby is at 2.1.5 now.