Adding resource controller functionality.

1. Moved GENERIC_ERROR constant to BaseController.
2. Added resource controller functionality.
3. Added BookRepository functionality.
4. Fixed comment in AuthorBookRepository.