Simplify setup by sharing common settings in global environment

Signed-off-by: Michal Čihař <michal@cihar.com>
Ignore tests import file needed for Django 1.5

Signed-off-by: Michal Čihař <michal@cihar.com>
Simplify code for handling forms

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge branch 'master' into bootstrap