Added an resource abstraction layer that will fit file and classpath.