Added a rest API for processes

Signed-off-by: Martin Evans <martindevans@gmail.com>