Initial implementation of REST server for commands

Change-Id: Ie986a6ce3692c31dacdc6cbfc00f022f3a5f273d