fix DirectoryApplicationArchiveTest to be OS independent.

Use File.separator instead of / when directories are checked
Merge pull request #236 from Orange-OpenSource/master

fix DirectoryApplicationArchiveTest to be OS independent.
Added uploadApplication() method that takes an InputStream.
Align with Pivotal