Try to detect distribution and stop trying to install visualvm when it's not available.
Try to install visualvm from packages only on Ubuntu.
Centralized detection of whether we are on Ubuntu, reasonably standard service
control commands instead of Ubuntu-specific ones.
Less branching around for Ubuntu.
Figured out that you can build this from the subcomponents, so here we go.
Updated chromedriver to 2.4
Added diagram of the call-graph; minor adjustments