Implement smali patches + migrate all smali code to patches
Implement Java stack

Fix weird bug where it sometimes thinks changes have been made even though there have not been, thus causing the APK to be reassambled unnecessarily.