Proc restart, Timer, moved out elasticsearch.py

Some minor fixes and refactoring.
New docproc: Timer
Processor restart() method