Added validation to books_rating. Added validation to books.
A whole bunch of refactoring, including making it more restful.