refactored track search. use $q.all to wait for all promises to finish
added jamsine, karma for unit testing