added piwik installation, introduced variables.sh, apic turned on when cpus > 1