Added rest functionality for order details. Created abstract search for mongoose.

Programmers: Tobias and Martin.
Merge remote-tracking branch 'origin/RestStuff' into ExtraGUI