Changed 404 and 500 error handling, added sitemap and robots txt tweaked build to place these in the correct place.