Added in common plugin functions from dokku-alt project