(SERVER-4) Add memory check to Master Service

Add a memory check to the Master service's init function that,
when the /proc/meminfo file exists, parses it to get the total
amount of RAM on the system and fails if the total JVM heap
size is greater than 90% of RAM.
I'd recommend putting all this logic into a well-named function, and probably stick it in `master-core`