Add ManagementContext.getEntityManager

- Deprecates methods from ManagementContext.getEntity(id) etc
- Moves methods to EntityManager interface
Update uses of managementContext.getEntityManager().*

- Changed calls to deprecated methods in managementContext, to instead
  use getEntityManager().manage() etc.
- Updates lots of test cases to use Entities.manage(entity) etc