Fix #28
Send template only if the header is text/html, to avoid resending the whole thing if a wrong request is sent.
Fix various layout details (including #9) + last compile
Use restore_error_handler to avoid triggering errors when loading feed