Significant overhaul to work with new twisty.js functionality.