Entities.destoryAll(app): move unmanage(app) call

- do before managementContext.terminate, to avoid error
- got away with it (usually?) because AbstractApplication.stop
  unmanages itself.
Tidy pom.xml scope "test"

- use "test" rather than "tests" for scope
EntityTypeTest: add tearDown
Merge pull request #826 from aledsage/fix/various-tidies-20130716a

Various (very small) fixes