Added amend option to commit operation
Changed return type of DiffCount. Now gives more detail about elements changed.

Also, added isClean method to WorkingTree and Index classes, for faster checking.

The output of some cli commands has been adapted to use this extra information about changes.

These changes fix issues when adding empty feature type. The count of unstaged elements was reported as zero, ignoring the added tree if it was empty
improved behaviour in case of exceptions in geotools commands
Fixed wrong GeoTools export tests
Added version command to geogit.
Merge branch 'DiffCounter' of git://github.com/volaya/GeoGit into master
Fixed a bug with commit adding features when it shouldn't

Commit would always add unstaged features that matched a path filter if
one was provided.

Fixes #385
Merge pull request #384 from jdgarrett/version

Added version command to geogit.
Fixed an issue which caused points from OSM to not be downloaded.

Nodes that were not part of ways were not being downloaded.
Make GeogitFeatureStore.getTransaction synchronized.

GeogitFeatureStore.setTransaction method was synchronized but the
getTransaction method was not. This may result in incorrect behavior
at runtime, as callers of the get method will not necessarily see
a consistent state for the object.
Fix exception created and dropped rather than thrown
Fix possible NPE reference or incompatible types equality check.

UpdateRefWeb was calling equals against newRef (String) and ObjectId.NULL (ObjectId)
and didn't check newRef for nullity.
Merge pull request #388 from jdgarrett/osm-download-fix

Fixed an issue which caused points from OSM to not be downloaded.
Merge branch 'amend' of git://github.com/volaya/GeoGit into volaya-amend

Conflicts resolved:
	src/cli/src/main/java/org/geogit/cli/porcelain/Commit.java
	src/core/src/main/java/org/geogit/api/porcelain/CommitOp.java
	src/core/src/test/java/org/geogit/test/integration/CommitOpTest.java
Merge branch 'volaya-amend'
Added additional unit tests to cover commit path filtering with --all.
Merge pull request #386 from jdgarrett/commit-fix

Fixed a bug with commit adding features when it shouldn't
Fix CLI's show command for SHA arguments that resolve to trees or feature types
Merge branch 'return_codes' of git://github.com/volaya/GeoGit into volaya-return_codes
Fixed an incorrect check in commit traverser and added a unit test to cover the case.

Fixes #389