Fix more style issues, and abstract most of the init code from MemMap.cpp.