init
port from apm fedsearch
add docs, skip if SOS_TEST not set