fixed issues with the merge
added a haspermission function

given a permission type, it will return true or false stating if the
item has that permission
Merge branch 'master' of https://github.com/stvno/cow into stvno-master

Conflicts:
	src/cow.items.js