fixed liteauth.py

liteauth core middleware now uses the refactored infrastracture code
the change adds support for invites and new service definitions