replace global redis connection; restructure tmp files

- replace global redis connection with finer grain connect/disconnects
- compile pastes in tmp/<pastenum>/ so image-generating evals dont clash

closes #22