Initial commit of experimental branch related to Mantis 3353
Essential code cleanup and basic fixes

Cleanup of Code:
- removal of redundant type casts
- removal of redundant else statements
- removal of redundant return statements
- removal of redundant field initializers
- removal of not used usings
- aligned returns to usage of ?? and ?: with the rest of the code
- updated copyright to 2012 on touched files
- added TODO comments for tracking additional changes that might be required
- combined declarations and initializations of local variables
- moved local variables closer to their usage
- marked fields that are used as constants correctly as const
- removed redundant ToString() statements
- added missing brackets on single line if statements
- removed if statements that are always true/false
- used IsNullOrEmpty on strings

Minor Fixes:
- corrected log message in TexturePacker to correct dimensions of max texture size that can be packed
- use MAXTEXTUREDIMENSIONS in catch statement instead of redundant hardcoded 2048
- checked for possible null values before several foreach loops
- converted for loops to foreach loops
FEAT-3775 Add LCN to Channel
Rework of loading TV recordings
In recordings view date order will now be total (sorting will no longer be folders then individual recordings)
When deleting the last recording in a folder user will now be taken up a level rather than left in empty folder
Fixes for several null reference exceptions when sorting by channel
Fix review comments
A few more minor tweaks:
- tidy SQL script
- change default LCN to 10000
More review comments
Review comment: Remove channel number from tuningdetails screen.
Fix bug in renumbering by SID.
Add check in TVHome to try to fix error when starting to play a video when Tvservice is disable or not reachable.
Fix SQL script
Use CRLF instead of CR (end of line)
Downstream flushing in video pin 'OnThreadStartPlay()' disabled if rate > 1.0
Fix duplicate Audio/Subtitle language in TV Section. Analyse language list and do not add language from "Preferred languages" in "Available languages" section.
Removed Selected Skin directory which was hard coded to point at appdata folder.
Weather DIR is not used within solution but needs to be set to prevent crash.
Downstream flushing in video pin 'OnThreadStartPlay()' method is disabled (for all playback rates) when MS DTV-DVD Video Decoder is connected.
Fix SQL server file
Fix SQL server file (need to add GO)
Mantis 4012 - Applied ncoH patch for unfocused alpha and extended to make backward compatible.
Fix workaround in code which causes inconsistent LCN