Tweaked default settings file.

* Explained why BASE_DIR exists.
* Added a link to the database configuration options, and put it in its
  own section.
* Moved sensitive settings that must be changed for production at the
  top.