added a ResourceManager and some refactoring in preparation for actually launching stuff.
Merge branch 'master' of github.com:huit/nepho