Added api.py
Added all the api resources to urls.
Corrected grammar for 403.html, 404.html and 500.html