Merge pull request #124 from nunit/framework-api

Merging this and the corresponding nunit-console PR.
Keeping the branch for further work.