F/dbparser testing

This branch refactors the dbparser unit test program to make a bit more readable and also contains dbparser
refactors.
I tend to disagree and have converted a number of defines to enums in the past. Even if they are not named and not referenced by the code (which it probably should be), this makes the identifiers available in the debugger as symbols, while defines are not.

Also, values are automatically assigned by enums.

All that said, has a number of different enums in the same file, neither of which is referenced from the code. This would indeed be a welcome addition. I've just pushed a patch on top of this branch to do exactly that.

Also, RAC_MSG_INHERIT_CONTEXT will be coming in a subsequent branch, so I've removed
that value (and rebase the branch to get rid off that).