WIP: EC backend

This PR will need splitting up a lot. Mostly here for CI :)