Improve memory monitor to allow graceful exit (without breaking existing requests).
Fixed jshint complains
Merge pull request #101 from dotcloud/fix-memorymonitor

Improve memory monitor to allow graceful exit (without breaking existing requests).