Completed API, lots of fixes, including stuff for the updater.