index.js: Autocompleted and Selected

Made options for 'typeahead:autocompleted' and 'typeahead:selected' functions. 
Also made it so that an object can be used as a datum, in addition to a singular name.

Haven't tested what would happen if we added this to ```$e.typeahead.apply($e, [options].concat(datasets));```, so didn't yet include it.