Change determination extension associated files

Normally determine extension by finding first . approaching from right.
For associated files use length of media_file basename to
determine the extension (approach from left).
Change LOG_DIR to absolute path and change switch log folder.

ACTUAL_LOG_DIR is relative path
On log folder change: Close old handlers, don't get extra console handler
+ some PEP8
+ change paths to logger.sb_log_instance.log_file_path
Use utf-8 for logfile encoding
Change logdate to numbers %Y-%m-%d to avoid foreign month abbreviations
Change format Backlog date to format Next Ep date
Change sickbeard.WEB_LOG only when log_dir or option is changed
Reverse order error log view
Merge pull request #691 from itofzo/change_to_absolute_log_dir_dev

Change to absolute log dir dev
Merge pull request #693 from itofzo/add_multidot_extenstions_dev

Change determination extension associated files