fixed 404 errors when wordpress is installed into subdir

Fixed 404 errors when wordpress is installed into a subdirectory. Replaced `site_url()` functions with `home_url()` so the subdir is not added to the url as explaned in http://codex.wordpress.org/Function_Reference/site_url#Related