Refactor api extractor, removes redundant pattern matches on booleans
refactors coreutils
refactor resource extractor