Fix revision table creation

Somehow we were running without a revision table for a while now, with a
fall-back request to the PHP API for each revision request.

This patch fixes the breakage first, better tests in a follow-up.
Merge pull request #61 from gwicke/unbreak_rev_table

Fix revision table creation