Adds Json functionality to Frontier
Removes old SCXML code
Moves new SCXML code to dg-core, corrects coding style