Ported auth context provider; update appengine customisations