Added a geonode_type property in resourcebase and refactored some code.
Merge pull request #1347 from capooti/add-type-property-in-base

Added a geonode_type property in resourcebase and refactored some code.