Massive update to apptools models, fixes in the service layer, general fixes in the WSGI gateway, compatibility with Gevent, datastructure improvements and tweaks.