Merge pull request #14 from rexim/master

Initial code for the pet extension
Pet: PetTick implemented.
Pet: some improvements