Updated tarball/client dist upload for javascript

Here we fix a couple of things - firstly that the compiled app only
gets uploaded on success in unit tests. Secondly, that we upload both
a 'recent' tarball and the most recent version tarball of the app.

Change-Id: Ifb7c16f649b36fbebcb061ab2cbd383fada6f960
Merge "Updated tarball/client dist upload for javascript"