[minor api] Store the overall length of a bar on `.length`.
[api] Make `length` a getter. Added a prefix property on `Bar` which is distinct from `before`
[refactor api doc] Added a much more generic stack implementation and associated examples.
[api doc] Added `.pad` option for stacks so that bars with variable length prefixes can be padded.