Fix: start server fail if DEBUG=True.
Add upload functionality.

 * Adjust templates.
 * Add logging.