Large refactor of the build mechanism & #12

Not ready at this stage
Removed dead project