Merge pull request #1 from Arkham/refactor

Script refactoring
new libs
new if_error() in logger.sh
create_vhost_file() moved in lib
reindentation
moved invocations to the bottom and reordered
fixed bug in libs sourcing
commuted procedural code into function
unsing new if_error function to do the check
commuted procedural code to function
can't name a function init + reordered the init steps
chown and chmod the folder only after creation

this way there is not the risk to chomod-ing
a pre-existent folder. Overall this was a bug
install wordless only if required