Project clean up

General Project clean up,
Add post build script,
Fix release build error,
Reorganised unit tests (VS2010 only left, convert to 2012 still
possible, but pls add changed files separate).