Basic backend (as basic can be)

Based on https://github.com/mitsuhiko/werkzeug/blob/master/examples/shortly/shortly.py