Add support for reading reed relay status.

Also some more general refactoring, including plumbing through actual
handler results to the HTTP response. Also added central enum with all
handler types.