Add raw JSON file saving, re-order C++ code

Use camel case on private functions in BdLogic class, re-order functions
by functionality.
Raw JSON written to a filename which must be hand typed into QML file
name text box.