Improved build script with external properties and dependencies, also
added upload artifacts tasks.