Moved some functionality out of doGet() into helper methods, started adding doPut functionality to prevent repeated addition or deletion of books on page refresh.