add EnvironmentContext to run command
use app_context
test history on travis
Merge pull request #48 from item4/cli/history

CLI: fix bug at setup.py - history