Refactor Galaxy tool install stuff slightly to reduce cyclomatic complexity and add some code documentation.
Add improved alert message when a Galaxy application fails to install.