Added partial support for Registration v2
Merge pull request #260 from TheKirk/master

Merged, hopefully it'll fully integrated into the lib later
Merge pull request #1 from venomous0x/master

Update new files from origin