Fix #115: Update database structure.

DATABASE_LAYOUT, db-structure.sql, and email-template-data.sql should be
up to date, and every patch file has been deleted. Also create empty
(except for a redirect script) patches folder to keep patches separate
from the main database structure files in the future.
Merge branch 'upstream'