commit 7.x-0.2-alpha

code clean up
add base path var to all template & api call
move hard coded resource type/templates to automated variables