Repo as a true module
Make repo a true module. The code from the repo.c
file won't be able to call functions directly to interact with the database.
Integrate mthread
into the repo module, the rest of lektor don't need it.
The majority of the code from the repo.c
file will need to be reworked.