Formatting change.
Move couchdb module into database folder.

/cc gh-15
Move import modules into import folder.

/cc gh-15
Move backup module into backup folder.

/cc gh-15
Store CouchDB view definitions and functions in separate module.

/cc gh-15
Remove media from _id generation functions.