Added XHR support and corresponding test specs for RelationshipsController.