HomePage sort by active show first.

Cherrypicking commits from former mr-orange fork.
This is https://github.com/WebSpider/Sick-Beard/commit/744f1c7a5866b6d8f93f8ee56cdd5f975bf924d5
Merge pull request #86 from WebSpider/dev

HomePage sort by active show first.
Fixed show name formatting issues.
Added tests for XEM scene numbering.