[CDF-238] - Reviewed build process for CFR
[CDF-242]: Orient Db shuts down on BA Server shutdown
Merge pull request #1 from pamval/core-refactor

Fixes for CDF-238 and CDF-242