Api v2

This is going to be a big pr.  It is not finished.  But I wanted to give you the chance to comment and review as I write it.