Removes failing cast when stepping through the wizard to the end.
(introduced while fixing #70)
Fixes problems with project workspace registration.
Refactors registration code.

Refs #60