first working impl

This is a working implementation, as in, it works in the included
fakecms (lib/janrain/index.php)