Initial commit

This initial code was cloned from smem
repository (http://selenic.com/repo/smem)

Signed-off-by: Leon Romanovsky <leon@loen.nu>