luci-base: migrate luci/getBoardJSON to C plugin