Infinite loop fix and generic conversion.
Gruntfile fixes

* Work around ts:dev failing before watch task runs
* Ignore interfaces.ts for compilation
* Mark all files for recompile if interfaces.ts changes
Generic registry implementation
More fixes for watch task