Merge pull request #1 from pedroigor/master

Updated code from latest the PicketBox CDI version. Fixed test cases.
add classes
an endpoint for account registration and checking whether an user already exists
IDM changes
IDM change
Merge pull request #2 from anilsaldhana/master

see comments
Merge remote-tracking branch 'upstream/master'