luci-base: add luci/getSwconfigFeatures and luci/getSwconfigPortState