Import the initial source code of unifying mmap

Import the initial source code of unifying mmap, can not compile
for the moment.
rebase the mmap_unify branch

rebase the mmap_unify branch to the current head.