This rewrites the basic methods to use the new primitives for vba automation. There are still a number of bugs in here. Also, the level grinding recursion is broken because there's no method used to detect whether or not a wild battle is starting. Waiting for a battle to really end is currently broken. There's a problem when interacting with radios because of the sound effect check in text_wait. There should be unit tests, but there aren't any.
original-commit-id: 1120eaaaf54afe16600c7b5f665edcbc621fde0f
original-commit-id: fe01fb510ff87310de1ecbce73f74d1a390d557c