add API node type instead of always use string to define api node See merge request lukas/openmediacenter!33