metadata.js defines metadata by hand using breeze.metadata.helper; previous deprecated version preserved as metadata-old.js
Also small improvements to breeze.metadata.helper.
model.js: order create sets the id of the new Order
orderSidebar.js: move private methods into the definition function so that 'select' doesn't throw exception
select is still not tracking properly