core: added possibility for [un]subscribing variables and nodes

It needs more tests, but in general, works fine.