refactor guice modules into separate pieces so that we can

re-use them in smaller contexts.