Should fix various url problems by taking siteUrl into account when getting route urls.

Trying to make as much use of path as possible on the client side.
Merge pull request #611 from anthonymayer/siteurl-in-urls

Fix various url problems by taking siteUrl into account when getting route urls.