Rename type to templateNamespace

The `type` directive attribute appears to have been renamed to `templateNamespace`. See my SO question for details: http://stackoverflow.com/questions/26963733/what-does-the-type-attribute-of-a-directive-do