ResourceManager refactor

Refactored ResourceManager to use a template
Reorganised resources
Ignoring xcode state

Removed xcodestates