I created a github repo with some scripts (Practically identical to yours, we must have used the same source?) for running moonlight from OSMC as well as an automated installer. I also modified irtimmers deb to run on OSMC (I created a pull request to hopefully add OSMC support to his repo in the future).
You seem to have controller support down, so if you want to help me adding this that would be great! Just submit a pull request and I’ll merge it!