intellidemand: upgrade to Intellidemand V4 by faux123

* adapted & upgraded from mako
* HUGE THANKS TO PAUL REIOUX!

--- based on this commit by faux123: ---

https://github.com/faux123/mako/commit/201c5cfb7ac5466ab5875e1ef58a8a7311cac36f