Move extension files into lib

To keep things a little more organised.