more flexible Apache configuration
important fix to hostname transformation

* fixed bug in format_hostname() function that was making some hostnames
  malformed and making vhosts inacessible

* added confirmation message after adding domains
libexec/create-virtwww: fixed bug in detecting curr_dir
libexec/restore-vhost-web: fixed hostname duplication bug
install.sh: fixed install re-use bug
install/install.ubuntu.sh: added apache2-utils
added new system key values
fixed wrong template names for Ubuntu 14
added key value: apache_main_include
added config/vhosts/ directory
libexec/restore-vhost-web: parametrized home_dir
libexec/restore-vhost: fixed small bugs on su'ing
fixes + better error handling
config-vhost-apache: parametrized websites_basedir
config-vhost-apache: fixed bug with includes

had a bug when including templates, contents was being added
to the the last line of previous template, turning into invalid apache
configuration. Now adds a new line to the end of each template to avoid
this.
add template variables DEVPANEL_BASEDIR and WEBSITES_BASEDIR
config-vhost-apache: better error reporting

shows line numbers when printing a malformed template
install.ubuntu.sh: enable CGI module on newer Ubuntu

CGI module is not enabled by default anymore on Ubuntu 13.10+
install.sh: parametrized websites_basedir databases_basedir and apache_main_include
restore-vhost-subsystem: adjusted $fqdn resolval to the new scheme