fabian's version

modified for PHP 5.3, added authenticator, created example for use with
Nette sandbox