Refactoring config out into an actor

Also built a companion object to make it easy to get the stuff.