Add an autoloader for entity proxy classes

Enables proper unserialization of entities, e.g. from session authentication.
Handle missing users correctly