Updates tvdb_api library to version 1.9

Most notably this adds support for returning a show using the DVD order instead of the airdate ordering.
Add grace-period to bypass the local tvdb show status 'ended' check.

The bypass introduces a sliding window of +/- 30 days from the
latest aired EP airdate and -30 day before next unaired EP airdate
where we will get the latest data from tvdb.
We exclude season 0 at this time from this check to prevent abuse.
This should prevent the need to do 'force full update' to fix shows
that get their status changed incorrectly while still reducing the
hits to tvdb for shows that are in-fact ended.

Added 'ended' bypass on to prevent older shows with no next aired ep
from being missed (ex Arrested Development or shows that have a
solid year or more between seasons - like Sherlock)
Add last_update_tvdb for controlling nigthly showupdates

+ move setTVRID into own try for correct error log message
Upgraded tablesorter 2.1.19 -> 2.13.3
Merge pull request #769 from thezoggy/dev--update_tablesorter

Upgraded tablesorter 2.1.19 -> 2.13.3
Change start options + added help text

+ create pid decision outside loop,
  otherwise using: --pidfile= --daemon is not creating pidfile
+ location pidfile in error output (debugging scripts)
+ rewrite some messages
+ unify exiting with sys.exit
Merge branch 'add_should_update_ended_shows_dev' into development
Fix mixed line endings
Change 90 days update: update only 10 oldest stale shows per session

Distribute the updates of real 'Ended' shows in smaller portions,
prevent hitting thetvdb with all stale 'Ended' in one update session.

+ moved should_update to TVShow object
+ use same update_date variable during session
+ changed some variable names
Changed the REQUIRE line to comply with the FreeBSD handbook

The REQUIRE should be LOGIN, not DAEMON, per the FreeBSD
Porter's handbook, in the FreeBSD init script. This is because sickbeard runs as a non-root user and
isn't part of the base system. Removed sabnzbd from the REQUIRE as well
since sabnzbd is not required for sickbeard to start and so should not
be listed in the REQUIRE line
Added additional rc variables to the FreeBSD init script

Added rc variables to allow specification of the Sick Beard host, port,
web interface username, and web interface password in /etc/rc.conf so
that users don't have to modify the init script to change these values.
This was done because user's shouldn't be modifying the init script
since init scripts are typically installed by the package and are
overwritten with each update. This changes allows Sick Beard to be
safely packaged into a port when the day comes that it's ready for that.
Removed sickbeard_flags reference from command_args variable

Modified the FreeBSD init script by removing the "${sickbeard_flags}"
reference from command_args because, per the FreeBSD Porter's handbook,
the flags variable should never be part of command_args. This is because
if the flags variable is defined it is added to the command
automatically by rc(8) when the init script is run.

Unfortunately we currently can't define the flags variable because it
gets added as a flag to /usr/sbin/daemon, not SickBeard.py
Cleaned up the output of the status function of the FreeBSD init script

The "status" command showed the ps usage information in the event it was
run when Sick Beard wasn't running. This is because no PID is provided
to "ps -p" in that instance. I redirected STDERR of the "ps -p" command
to /dev/null to resovle the bug
Fix unnecessary message about PID file creation
Add catIDs support (ini only)

Adding catIDs support to ini only
+ includes config.ini v4 migration to set catIDs
Change config variables for migrating correctly (itofzo)
Add mising jui sortable handler.
Add save config after starting new install
Change omgwtfnzb search url (301 Moved Permanently)
Merge branch 'change_90_days_update_dev' into development
Fix AddLastUpdateTVDB wrong subclass (mr-orange)
tablesorter 2.13.3 -> 2.14
Fixes empty dataset sort to how it was before.