Initial revision or ResourceUtils.
Various small improvements, new utility methods and refactoring.