flexible and easily implementable php/js based event logging