Moved exceptions to api library.
Added license.
Build now creates a single OSGi bundle.
Simplified Gradle builds.