Move code into shared projects.
Null-terminate UTF8 strings.
Add MonoTouch support.
Remove and re-add projects to make Visual Studio happy.