Postgres conversion
Postgres conversion and cleanup
Upgraded to new Javascript API plus Clean Up
Updated API js file link.
Merge branch 'feature/new-api'
Merge branch 'master' into production

Conflicts:
	www/global_var.js
	www/index.html