Cleaned up twitter typeahead styling

Made the cookie sniffing a class to be used by client indexing to prevent queries when not logged in.