refactor r2 into r2 dir and the builtin loader and analyzer in builtin folder