Added other license stuff, hooks system and some Py3 changes to server
queries