Handle 404 and 500 errors

Add global error handler for ajax error
Add global error message template
Remove cutom 404 adn 500 django handler view
Modify 404.html and 500.html