Add OSGi metadata to work in OSGi environment

Fixes #21 

Note that I have moved some code from metrics-core to core-api module so we don't have split packages across modules - although we can get this working in an OSGi env, it would be better to have package unique across modules, unless you have any objections?