URL rewrite issues, allowed URL ending .html, enabled custom error pages

Enabled custom error pages
Allow URL ending .html
API and global URL rewrite issues
Added URL ending .html examples
JSONP callback set issue