Initial commit of split backend code