change type of Request for search to interface{}

Bring your own marshaler
refactoring
add dbg