Refactoring: adding baseclass

Added PockpackBase to contain common elements used by main Pockpack class and PockpackAuth.