New BASE_DIR "setting" (issue #49)

Changed development/production environment condition (is VERSION at project dir?)

Erased unused settings (issue #49)

Added new middleware classes (issue #49)