Reorder autocompletion code to match sample README order:

* eases comparisons across versions.
Add ability to allocate standard buffers:

* Need to teach buffer infos how to release buffer ids
add Buffer@to_i method - returns buffer id