Restorer: Re-implement in Perl

Implement the restorer as a mod_perl handler.

This commit fixes bug 1061411.