Dev options REST method and some IoC refatorings.

Signed-off-by: salomax <salomax@salomax>
Remove class attribute on JSON serialization.

Signed-off-by: salomax <salomax@salomax>
Fix serialization.

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