Add support for OpenDingux and other fixes

Here are the promised changes.