Mining agent WIP
Some small tweakes to framework
Merge branch 'jnibwapi1.0'
Small nullpointer fix