Added pre- and post-execution callback tests
Some refactoring, adding "Adapter" logic and basic foundation, proof-of-concept implemented in index.php