Fixed json serialization bug and added binding ip.

Fixed a bug where the level of the enchantment on an enchanted book
would be wrong and added a config option to bind the server to a
specific ip.