Changing resource name to be dashed and not just downcased

This is to fix resource names which were 'contentview' for ContentView. It should instead be 'content-view'.

Work in progress. Need to add tests.