updated module. Resources can be tied to events.

it will be work only with last commit. ->[calendar] add ability to connect modules.