start for kratos

initial models; initial json output used by angular branch; very early code. 
discussed offline. will resolve in an upcoming planned rewrite.