I used NodeMCU for now and plan to write the same thing in pure C/C++ to make things more clear to me on that field. I used basic example of LUA code, where LED was switchable over the web. From there i continued with my own ideas.
In future, when i have the motivation to clean up the LUA code a bit, i may put it up in github.