Adding type as field to DomainEvent to make it shown when serializing as Map.

Fixed orders/events endpoint.
Cleaning up