Prepare to compile with mono (tested on MACOSX). Moved the after build stuffs from .bat files to msbuilds.
There are some issues with EntityFramework.