Revert "move non-ast code to parser package"

This reverts commit 95df30e00bf9a7fe04ab63147e77feb386c10126.
Rewrite base64 test to be more idiomatic Go