general code cleanup and documentation, plus make it possible to get formatted JSON in IE8
added modernizr and started with svg conditional fallback for old browsers