Renaming getEntityManager to getManager

Doctrine getEntityManager function is now depricated and replaced by getManager,
updated all getEntityManager calls.
Merge pull request #30 from coalwater/master

Updating all getEntityManager calls to getManager