update angularjs to 1.0.4
first cut of endpoint switch
first cut of history view