Added templating to flatpack

Bottle.py is now a dependency of flatpack, because it uses its simple
template engine (because I'm too lazy to make my own or separate it from
bottle)