Merge pull request #8 from pamval/core-refactor

[CDF-238] - Reviewed build process for CPF core-refactor
[CDF-242]: Ensure Orient DB shuts down when BA Server shuts down