Big cleanup
* Removed perl dependancy
* Integrated with a pure bash json parser
* Turned on error checking, unbound variable and pipe failure checking
* Fixed the code to pass new error checking options