Improved code quality everywhere; made code more concise, resolved 'need' for `while(True)`s, improved formatting and generally moved to better practices.

Improved code quality everywhere; made code more concise, resolved 'need' for `while(True)`s, improved formatting and generally moved to better practices.

Next step will be switching from pymongo to DAL (which is an abstraction; allowing you to choose MongoDB; Postgres, Oracle, GAE &etc…).