Fix 500 error

500 error does not get request object
Therefore it does not have access to STATIC_URL
Embed header/favicon/error images as base64
Prevent load error of unused scripts by not extending base.html