Confirm custom command Req #532

Changed the code so that custom commands can also take a field "confirm": "Confirmation text" before being executed. Req #532 asked for it and I needed it too, so I coded it. 

First commit, hope it merges well and I did the guidelines correct.