Fix #819 "Occasional NPE on portlet initialization"

- was happening when Version.instance was called before ResourceManagerWrapper.init
- remove unneeded methods in ResourceManagerWrapper
- generify a bit