Added support for directory location independency.

The require 'vendor/portable.php' should set the variable $pkg_root to
dirname($_SERVER['PHP_SELF']) or the CGI equivalent.