Moved factory methods to ResourceFactory
added Gulp build file
First try with adapters and resource factory