First attempt to make thetvdb module.
Fixed wrong (200) response code on 404 page.
Fixed server crashes due to global variables.
Minor readability changes.