api for custom profiler

Changes to the build in profiler to make it possible to create custom profiler implmentations an plug them in into jruby.

For details see https://github.com/areman/jruby/wiki/Profiler-Changes