added the new rest api from martin but without order details.

someone take a look at that please.
A few modifications.
Merge branch 'restNewFromMartin' into fronEndUglyEditing

Conflicts:
	app.js
	public/javascripts/site.js
futile attempt to finish something.