add raise SystemExit
fix exit_code to 1
Merge pull request #49 from item4/cli/upgrade

CLI: fix bug at cliche upgrade
add EnvironmentContext to run command
use app_context
test history on travis