Refactor template files.

* Extract base.html.
* Add Bootstrap library.