Reorganise into src/ and lib/ directories.