consilidated methods and added Resource object
consolidated resource methods into a Resource prototype which now inherits Everybit.Object