add dmesg to the rest api

This patch adds the json parameters for the /os/dmesg rest api call.

Signed-off-by: Jaspal Singh Dhillon
Signed-off-by: Pekka Enberg <penberg@iki.fi>