stop doing nose tests verbatim

will make builds more readable.
move clean_id to util
implement rest_cache with tests (not in use yet)