Wrote ServiceLocator (first time with Java generics, so this might be pretty ugly). "Ew ew global state!"... but this will work well for us as it's a small project, with few services. TODO: unit test.