Added R/W command handling

Signed-off-by: Lasse Bigum <l.bigum@samsung.com>