Loads of new stuff for the API, part bug fixes, part new functionality, part code improvement.