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
Redirect fixes and pep8 related corrections.
Merge pull request #787 from thezoggy/dev--redirect_fixes

Redirect fixes and pep8 related corrections.
Merge pull request #772 from nixalot/freebsd_init_update

Update the FreeBSD init script to comply with the standards in the FreeBSD Porter's Handbook
Metadata tweaks and updates

Lots of cleanup to make things a bit more standardized.

Remove Synology metadata since it was just a clone of MB and does not appear to be actually used by synology units.

Add banner, season banner season all poster and season all banner options.

Remove use_banner poster override since now we have a banner option.
  This now means users can have both a poster and banner instead of one or the other (XBMC12+).
  Migrate legacy XBMC poster + use_banner setup to just banner option (keeps old functionality).
  Notice that on XBMC the banner and poster result in the same name,
  if you have both checked it will just create folder.jpg with a poster
  since we don't overwrite existing metadata.
Merge branch 'change_metadata_updates_PR-789-thezoggy' into development

* change_metadata_updates_PR-789-thezoggy:
  Metadata tweaks and updates

  closes gh-789 closes gh-621
Merge branch 'development'

Metadata: ALL -- Cleanup and standardize providers. Pull #786 #789

    Add banner, season banner season all poster and season all banner options.

    Remove use_banner poster override since now we have a banner option.

    This now means users can have both a poster and banner instead of one or the other (XBMC12+).
    Migrate legacy XBMC poster + use_banner setup to just banner option (keeps old functionality).
    Notice that on XBMC the banner and poster result in the same name, if you have both checked off it will just create folder.jpg with a poster since we don't overwrite existing metadata.

    Metadata: XBMC -- Strip leading/trailing spaces off Actor's names.

    Metadata: TIVO -- Generate rating off the episode not show data, convert 10 star rating to 4 star (ensure we end up with whole or half integers only).

    Metadata: MediaBrowser -- Re-order and cleaned up the .xml generation to match what MB3 itself produces.

    Removed Synology metadata since it does not appear to be actually used by Synology units.

Tweak RawHD/SDTV (webdl/webrip) and change default defer site. Pull #782

    Add additional RawHD format support that would allow (very specifically) for: Sherlock.S03E01.1080i.HDTV.H.264.DD2.0-CtrlHD
    Split webdl/webrip from the normal SDTV regex test, to allow more flexibility since it usually contains audio related tags/h264 (ex: Chosen.S02E01.WEB-DL.AAC2.0.H.264-2T).
    Fix HR.WS.PDTV.x264 from getting wrongly detected as SDTV.

Due to derefer.me request, switched new installs to another defer site, dereferer.org.

XBMC12+ Metadata support (initial support)

    Note that with the current settings you generate banner OR poster, not both at this time.
    Plans to support season##-banner.jpg / season-all-poster.jpg and having both banner+poster.jpg will happen in a future update.

Redirect fixes so that pages load with trailing / to reduce unneeded redirects. Pull #787

Update tvdb_api lib to 1.9 (for future support of dvd ordering). Pull #743

Add setting catIDs to NewzNab providers (ini only). Pull #771

Update FreeBSD init script. Pull #772

Update pnotify js, limit to a max of 5 onscreen notifications at a time. Pull #776

Fix UI setting of custom NewzNab sites that really do NOT require authentication (use 0 as apikey).

Tweak the Error Log Viewer page to show the 500 (instead of 30) most recent errors.

Tweak the extra_scripts execution to support unicode and fix the handle is invalid error.

Fix saving extra_scripts on config/hidden from creating empty list.

Quote search provider names to resolve issues if the name started with a number causing error unrecognized token.

Fix double encode UnicodeDecodeError errors when writing to the logger.

Fix UnicodeEncodeError exception in name_parser.

Trim trailing spaces when comparing ignore_words to resolve badly entered config.ini modifications.

Added version checking to the config migrator, follows how we handle our database checking to protect from trying to process ini that has been modified by forks/branches.

TVRage related fixes that deal with converting airdate to use locale abbrevations to resolve the error Unable to figure out the time from the TVRage data

Fix DeprecationWarning: BaseException.message on related database error messages.
Upgrade jquery ui 1.10.3 -> 1.10.4
 -- http://jqueryui.com/changelog/1.10.4/
Merge pull request #793 from thezoggy/dev--jui_update

Upgrade jquery ui 1.10.3 -> 1.10.4
Quick pass over our .js to cleanup some whitespace issues found. Added missing semicolons and parenthesis to make code more clear. Applied some slight optimizations and possible redirect fixes.
Merge pull request #795 from thezoggy/dev--redirect_fixes_js

javascript cleanup
Add routines to check or clean GUI input
Fix Exception on adding initial rootdir (ROOT_DIRS not set)

Because sickbeard.ROOT_DIRS is not set, converting first value into int results in ValueError: invalid literal for int()
Fix Exception on adding rootdir (unable to open NFO)
Merge branch 'add_checkbox_to_value_clean_host_url' into development

* add_checkbox_to_value_clean_host_url:
  Add routines to check or clean GUI input
Merge branch 'fix_adding_existing_show_never_returns' into development

* fix_adding_existing_show_never_returns:
  Fix Exception on adding rootdir (unable to open NFO)
  Fix Exception on adding initial rootdir (ROOT_DIRS not set)
Change Usenet-Crawler to https