Rewrote server to use ndb. Tests not all passing yet.