Make code less ugly

Mostly, this cleans up ruby style violations.

We left in an explicit delegation to `list_of_stack_elements`, but that's an easy thing to remove later by inheriting from `Array`.

* removed a lot of unused code
* removed a lot of unnecessary and confusing stuff as wel