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

Conflicts:
	sickbeard/webserve.py
Merge remote-tracking branch 'upstream/development' into pushme

Conflicts:
	sickbeard/webserve.py
Merge branch 'pushme' of https://github.com/adb2001/Sick-Beard into pushme
- Missing pushme image
- Changes
- git ignore
Remove obsolete functions using open
Change open to 'with open' and exception IOError to 'EnvironmentError'

Use 'with open' when opening/writing files
http://sdqali.in/blog/2012/07/09/understanding-pythons-with/
The advantage of using a with statement is that it is guaranteed to close the file no matter how the nested block exits.
If an exception occurs before the end of the block,
it will close the file before the exception is caught by an outer exception handler.
If the nested block were to contain a return statement, or a continue or break statement,
the with statement would automatically close the file in those cases, too.

Switch exception to `EnvironmentError`
http://docs.python.org/2/library/exceptions.html#exceptions.EnvironmentError
Since it is the parent of IOError, OSError *and* WindowsError where available.

+ Cleanup test_lib a bit, still needs work.
+ Applied whitespace PEP8 fixes to the files touched.

closes gh-797