API plugin ready for #31 also forgot a couple functions in core/activemq