Implements OPTIONS REST method.

Signed-off-by: salomax <salomax@salomax>