Add source code from release of membase 1.7
Fix build problems.
Remove built in libevent, it fails to build and isn't needed.
Ignore build generated files.
remove some more build generated files
Add back in needed files.
Add modified build files.
Update .gitignore.