Bumped the PHP requirement because of list() in foreach
Implemented compact serialization of global permissions, added tests