Add $timeout for initial load and support DI for minfication

Thank you so much for this awesome directive.  I owe you some beers!