Add use case checking for the book use case.
Optionally assign the moduleid on metadata insertion. Addresses #17