Refactor code.

* Move template files into a separate directory.
* Put all the settings into a separate configuration file.
* Add .gitignore.
Add some styles.
Refactor database stuff.

* Move db settings to configuration file.
* Add support for DBRef.
Add some styles.

* Remove list bullets.
* Table stripes do not work.