Updating .gitignore to hide php error files.
Update to anidb, major change to how searchable titles are generated.
Also changes to how anidb looks up titles on anidb site, now it is assumed that the external populate_anidb.php (run optionally from populate_anidb.cron) is used to populate the table.
Also changes to general regex to ensure a better title match.
All of these result in cleaner searchable titles, btter matching of Episdoe title and number as well as less chance of a ban from anidb.

Conflicts:
	www/lib/anidb.php

Conflicts:
	www/lib/anidb.php
Fixing constructor after merge conflict.
Some more changes to title detetion and animetitle parsing, was able to get up from 74% to 93% hit rate with the latest changes.
Changes to category since teh previous was NULL, and anime needs to be always 5070
Fixes for category, as the previous category was NULL, and for anime it is always 5070.

Also fixes images as the anidbid was passed using teh wrong case to teh template.
Updates for in progress Anime, previous all titles were handled with a 42 day rotation, but simply put old anime can wait 60 or maybe more but 60 is safe, however shows in progress need to be updated every 7 days, this now does that
Dumb error in an array, never caught it before, fixed now.
Stupid mistake, which I did not find until it had been running for 21 days, it wouldremove recorded automatically (this was how it use to work), now it waits 90 and then only removes entries that need updating, if a separate for loops so this code simple wasted anidb API access attempts.

For now it is commented out, as the code could be useful in the future, so no reason to remove it, but there is a reason to never run it.

Also update .gitignore for the local environment, so anyone else can ignore it.

Conflicts:
	.gitignore
Fixing typoes and white-space.
Fizing a couple typoes I missed.
added script to grab all shows from tvrage at 1 time
optimization of some of the libraries
fixed bug in monitor
Merge pull request #987 from Bart39/dev

optimization of some of the libraries
removed comment
typo
oops, forgot to uncomment this, causing serious issues
typo
typo