ManagementContext tearDown in tests

Builds on (and replaces) https://github.com/brooklyncentral/brooklyn/pull/848.