added logout route. added typeahead.js. created master template