extract entity-related method to its own dao
add default_entity_id()
associate default entity when creating user
make userfeatures.entityid a foreign key
Merge branch 'user_entity'