Added js-routes gem.
Added ajax calls to the add friendships feature and fixed related tests.