Update the github book editor to use the refactored code

There are still several outstanding issues and should be probably be merged once loading and saving books works again since the current branch works.

Changes in this should be compared to the `master` branch even though the request is to the `github` branch.