use macros in mds.c

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add strequals and startswith macros + add drop_privileges macro that drops the group before the user

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add monotone macro

Signed-off-by: Mattias Andrée <maandree@operamail.com>
move config.h into libmdsserver

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add util.c

Signed-off-by: Mattias Andrée <maandree@operamail.com>