Initial work to connect beans API and Kernel API
 - Added licenses
 - Made the single statement transaction checking stricter
 - Handles nested transactions in the transaction ctx to thread mapping bridge
 - BeansAPITransaction handles multiple calls to tx.finish()