Refactoring code, added delete book request

Signed-off-by: Victor Zagnitko <victor.zagnitko@yandex.ru>