More automation changes

With these changes I'm able to run Bagheera from my JUnit tests, send requests to it, and shut it down. \o/