Some tests for the HerculeEntryPoint

Not all is tested though, because I've not found any good way of shutting down the application from the tests (which means that it will block ports for the other tests later, thus causing trouble).

I also did some refactoring of the entry point in general to make it somewhat easier to test.