Move markup back into /database.

To avoid confusion as to where it is actually used.
Move flask core to /viewserver.
Dump all user-uploaded stuff into a single directory by default.