change base install directory to '$basedir'

Add parameter $basedir.
Relocate installation base directory to $basedir.
Make user resource a 'system' user to avoid UID conflicts when provissioning
users with LDAP.