Minor code improvements

Added comments, renamed vars and functions, restructured, removed dead
code, made some minor code improvements
Merge branch 'development' into msnJSMods16Dec2013

Conflicts:
	trunk/js/dhp-project-page.js
Merge pull request #41 from jehope/msnJSMods16Dec2013

Minor code improvements