moving pre/postbuild steps to msbuild-style tasks for platform independence.
Made a post-build step more resiliant so it will compile with xbuild now.
initial attempt to get travis working.