Added createschema and dropschema commands.

The psql command may be customized through the PSQL env variable.
Export your custom zotonic variables from ~/.zotonic-defaults.

Sample use:
kaos@ganesha:~/src/zotonic$ ./bin/zotonic dropschema dev
NOTICE:  drop cascades to 24 other objects
DETAIL:  drop cascades to table dev.config
drop cascades to table dev.module
drop cascades to table dev.rsc
drop cascades to table dev.protect
drop cascades to table dev.edge
drop cascades to table dev.medium
drop cascades to table dev.category
drop cascades to table dev.predicate_category
drop cascades to table dev.persistent
drop cascades to table dev.identity
drop cascades to table dev.emailq
drop cascades to table dev.rsc_pivot_queue
drop cascades to table dev.pivot_task_queue
drop cascades to function dev.rsc_pivot_update()
drop cascades to table dev.medium_deleted
drop cascades to function dev.medium_delete()
drop cascades to table dev.log
drop cascades to table dev.log_email
drop cascades to table dev.oauth_application_registry
drop cascades to table dev.oauth_nonce
drop cascades to type dev.oauth_token_type
drop cascades to table dev.oauth_application_token
drop cascades to table dev.oauth_application_perm
drop cascades to table dev.comment
DROP SCHEMA
kaos@ganesha:~/src/zotonic$ ./bin/zotonic createschema dev
CREATE SCHEMA
kaos@ganesha:~/src/zotonic$
z_email_server: Force quoted-printable encoding on HTML and Text parts in emails.

The autodetection that mimemail.erl does sometimes fails on HTML
parts, causing them to be 7bit encoded, which causes long lines, which
causes bounces at some email servers.

Fixes #326
Merge branch 'master' of github.com:zotonic/zotonic
z_install_defaultdata.erl: typo fix.
z_installer: get db settings from pqsql pool.

Some of the db settings may be inherited from priv/config and is not present in SiteProps.
fixed my .emacs to not mess up the indentation.
Implement z_session_manager:fold to iterate over every connected session.

Fixes #325
mod_survey: Show e-mail addresses that have been entered in the survey in an easy copy-pastable dialog.

(cherry picked from commit f9779ec5811ee8bbd4562776d520d4e75f2e4afb)

Conflicts:

	modules/mod_survey/templates/_admin_edit_content.survey.tpl
mod_survey: Added easily-printable output.
(cherry picked from commit 868fadf9b03e1ab530f9c1b025cdea3faf98cdf6)

Conflicts:

	modules/mod_survey/templates/_admin_edit_content.survey.tpl
	modules/mod_survey/templates/_admin_survey_editor_results.tpl
Moved zotonicwww site into its own repo at https://github.com/zotonic/zotonicwww
WIP: Removing Atatonic, adding Bootstrap.
Adding mod_base_site with a basic site for mobile/desktop.
Many small(er) changes for atatonic/bootstrap differences.
Corrected in erlydtl parser the indexing, now you can index with a E, instead of a value.
Added in m_search the page and pages properties, for use in the templates.
Merge branch 'master' of github.com:zotonic/zotonic
Fix for mochiweb:to_html bug with singleton tags. Fixes issue #328
Merge branch 'master' of github.com:zotonic/zotonic
Cleaning up some more atatonic files.
Nicer error dump.
Nicer title.
Merge branch 'master' of github.com:zotonic/zotonic
Fix access to printable list.
(cherry picked from commit c2a89a40ee149258de2a63456ef17ec77e807cef)
Add bootstrap to mod_admin, so it works without mod_base_site.