Fixed circular reference madness with custom user models

This fixes #113 where a circular import can happen when populating the app
cache or the app cache isn't loaded yet.