Change structure to be more library-like. Also fixes ignore of build/.