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

Programmers: Tobias and Martin.