Adds rails_api and index action/test for books.