Implemented backend functionality for pretty much everything for TP3. Make frontend use this, coming up next.