Restructured extension and added build stuff.