Typed static queries

I'm opening this PR so we can discuss the current state of the implementation.
Yes there are classpath issues. I have tried the methods(keeping a reference.conf in src/main/resources and in testkit/src/main/resources) recommended in config examples. 
I think sbt has separate classpaths for the compile time environment.