Rewrite

A complete rewrite. The back-end is now completely based on key / value
pairs submitted at a specific time. This simplifies the script and
increases its flexibility.