Made models use only local references.

This is actually more stable, so we don't rely so much on a specific
namespace.
Added doctrine sample configuration.