Factor out ensureUser and add Error class in seed_db
Also removed the seed_many stuff, this will be moved to a seperate
url with in a more generic approach.
Patch by: Sverre Rabbelier
Benjamin Niemann <pink at odahoda dot de>: Main developer of Python target.
Clinton Roy <clinton.roy at gmail dot com>: AST templates and runtime.