Solve PHP timezone error

Added a check to remove timezone errors when timezone is not set in
php.ini
Fix URL handling on Google Appengine

Deploying to Appengine breaks Pico as $request_url and $script_url
never differ (always /pagename). Added an alternative $url definition
for these cases and trimmed the leading slash.