Made everything a bit more robust

Added a "mode" and a "searchtype" that control what is displayed on the
map. e.g: in "all" mode with "track" search type, the default map color
is used and the bar chart shows the top tracks.