edit block now support metadata

more to do list.
"/buy" and "/edit" now accept names

more TODO list
some clean up.