Added dynamic WWW_BASE

Added a dynamic way to declare the WWW_BASE constant. Maybe moving
content of init.php to Config class later