Reorganized the code to make an independent module and to follow Claromentis 7.2 structure. Also applied some fixes for changed API and new bootstrap