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)
Merge remote-tracking branch 'upstream/development' into pushme

Conflicts:
	sickbeard/webserve.py