Made ports more robust.
Merge branch 'master' of https://github.com/TechnoSave/TechnoSave
Merge branch 'master' of https://github.com/TechnoSave/TechnoSave

Conflicts:
	app.js
Removed extra lines.
Merge pull request #73 from davemun/master

Latest pull+merge for heroku.