- first stab of possibly-working definition next/prev methods (in original book order, not a simple sort by defhead!).
- also refactored some utility functions into a util module