Rewrote parts of memory.lua to be shorter and simpler.
memory.c: map_physical_ram().

Dead code. If we need it again later we can revive it from the git history.
memory.lua: Comment & whitespace cleanup.