Added up and down handlers.
Rename log enum values.
Rename entity enum values.
Rename remaining enum values.
Client flag refactoring.