Pair down build using module plugin

It looks like history was a bit rewritten since I started the branch, but I tried to merge as best I could.

Here's an attempt to simplify the build by ousting the common gunk to the sbt plugin.

Review by @dragos (OSGi still works) and @adriaanm (for whether or not it's awesome)