implemented JSON output for list books and search books.  polished up delete and listings

Modify books is currently in progress.
Functions.php has been updated with more flexibility