searcher filtering changes (please review)

- Filtering of Lossless min/max, Preferred bitrate % and already
downloaded check stops the searcher moving on to torrents if prefer NZB
set (and vice versa). Moved from sort_search_results to new routine

- Preferred bitrate low/high calc not quite right, should be target
size + high %

- Please correct me here but I think this logic ‘elif
headphones.PREFERRED_QUALITY’ is True if Preferred Bitrate
(PREFERRED_QUALITY = 2) which means it will always get lossy and
lossless. Surprised that no one has complained about this. Anyway, what
this means is that the ‘Allow lossless if no good lossy match found’
option kind of works although it shouldn’t! Changed to explicitly state
PREFERRED_QUALITY == 1 and added a flag to allow_lossless which is set
if Preferred Bitrate and High Limit and Allow Lossless are all set

- removed unused bitrate from rutracker
Totaltracks wasn't right when switching album release: the 2nd query didn't work (& was redundant?)
Use built in CGI module to escape special characters in title on history page
Removed the unnecessary initLogger line
Updated init scripts a little
Merge remote-tracking branch 'rembo10/develop' into bugfixes6
Parse response content for HTTP errors when verbose is turned on
Code improvements and fix for #1721
Album Search Results Changes

- mb findRelease
get additional info incl Date, Formats, Tracks, Rgid etc, pass to
searchresults
added optional artist to findrelease, if searching by album can now
enter album:artist in the search bar, went for this for now as I didn’t
want to change the design too much but maybe in the future we could
have 2 boxes, artist album and then there’s no need for the dropdown
artist, album

- base
position at search box and persist selected option (uses local storage)
when refreshing, useful if entering multiple albums
increased the search box size a little

- searchresults
album results - new fields from mb, fall back to cover art archive rgid
url if last.fm not found (should get more results), musicbrainz album
icon link, pass mb rgid to addReleaseById to redirect to album page
artist results - musicbrainz artist icon

- importer
addreleaseById - added rgid param to create the album record upfront
with status Loading if from searchresults

- webserve
redirect to album page using rgid from searchresults

- album
spinner while album is loading
fix merge conflict
Forgot to remove parenthesis
Check for message length
Merge branch 'escape_html_entities' of https://github.com/sandersch/headphones into sandersch-escape_html_entities
Merge branch 'sandersch-escape_html_entities' into develop
Merge branch 'bugfixes6' of https://github.com/basilfx/headphones into basilfx-bugfixes6
Merge branch 'basilfx-bugfixes6' into develop
Merge branch 'master' of https://github.com/texke/headphones into texke-master
Merge branch 'texke-master' into develop
Merge branch 'ade' of https://github.com/AdeHub/headphones into AdeHub-ade
Merge branch 'AdeHub-ade' into develop