Add simple API for getting devices and associated commands.

Just issue a simple GET request to /api/0.1/devices and all registered devices and their respective commands will be returned in a JSON format.