Rip out repository

Repository is in its own module now. This is going onto master and is gonna be rolled into the 2.x series.