Replace #define constants with enums/static consts

Registered by Gustaf Thorslund

"Use enum, not define, for sets of related constants.

Use static const, not define, for single constants."

That's from:
  http://wiki.drizzle.org/Coding_Standards#Other

So go over the code in a similar way to:
  https://blueprints.launchpad.net/drizzle/+spec/replace-macro-functions

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Gustaf Thorslund
Direction:
Needs approval
Assignee:
Gustaf Thorslund
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.