Build Script and Code Reorganization

This small pull request adds a preliminary Nant build script. It sports just the bare basics: building and testing as well as release builds.

Apart of this, a minor code reorganization is included as well.

Please review and and merge if you feel happy about it.