Refactored logging to make it simpler to reuse it in different servlets.
New experiment servlet with logging through listeners.