Added workaround for the json_last_error() function

It doesn't exist in prior versions of PHP 5.3.0
Forgot to change the last json_last_error() usage fallback.
Fixed a breaking bug for the DAP plugin when removing a user from a product

The user that was sent should not have the user ID of the DAP user as XenForo does not know anything about DAP's user ID's.
Send confirmation email upon register
Merge pull request #8 from Zachoz/master

Send confirmation email upon register
Merge branch 'refs/heads/master' into dev

Conflicts:
	net/xenapi/XenAPI/api.php