Fixed handler500 and handler404 in the project template, removed unused

Fixed handler500 and handler404 in the project template, removed unused imports on  urls files.