Added sort-order indication.

Fixes #6
Smaller DAO changes
First version of search

incl basic search predicates
Finished search.

All planned filters are implemented. Fixes #2.