Cleaned up the request handler code, no code - no longer is everythig stuffed into one giantic function.
Switched to serving the requests via a versioned api. Version 0 is subject to change, will try to keep things stable from v1 onward.