fixed bugs in lib and book forms
added controller methods
added library model
added library id to books
added json, nested routes, libraries controller
json call almost working
phase3 complete with csrf tokens