Add base class for package objects, update gemspec