Fixed a bug.

There was a bug in case dirname($_SERVER['SCRIPT_NAME']) == "/". The resource path contained a double slash at the beginning of the path instead of a single one.
Updated ajax-loading message for most of the navigation cases.