Merge branch "port" to "master"

This merge removes all the old and crappy C# code written (it wasn't a framework, as the description says) with brand new (:D) C++ code.