Merge pull request #2 from kbu1564/refacto-3.0

Wrong transtyping on Payload::$mask
Use str_split rather than preg_split on maskData
Add some tests for the payload