Fix Application#run().

Also, make Cli#run() return a boolean success value.

Closes #337.
Merge remote-tracking branch 'upstream/master'