Updated front end to make use of new keep, toss, pair endpoints.
Added notes on directive based design pattern.