fix for edmodo server errors

 Appends text/html as an acceptable response type if not present in the HTTP_ACCEPT header.
This should stop malformed user agents from generating 'Missing template' errors on pages.