Profiling Update

- Added profiling into the main functions to trace usage
- Moved the Json loading helpers into CarbonCore