pattern.server: multiple updates & bug fixes

- DatabaseTransaction.execute() stores queries in RAM
- DatabaseTransaction.commits() commits them in batch, using a separate, thread-safe connection.
- Rate limiting bug fixes.
- @threadsafe decorator
- @app.view(template) and Template class