Move tests from library to tests project.
Add entity unregistration.
Add service unload support.
Add new test case for testing BrightifyFactory.
Make the BrightifyService test leave the state of the service as it was
before the test.