Refactoring of Search service to use AtomEntity.

Few fixes in handling dates + documentation.