Merge pull request #21 from fraga/BuildServerIntegration

Merge from upstream master
Select first staged item if there is no unstaged item.
Merge remote-tracking branch 'upstream/master' into BuildServerIntegration

* upstream/master:
  Select first staged item if there is no unstaged item.