Import mg from OpenBSD-current CVS 2014-11-27
Add tests for basic functions
Continue working
fix bugs
Update
Scratch