Minor tweaks/hacks to get working with webapp2 framework. Need to investigate constructor signature.