WIP: v2 backend overhaul and frontend changes.