Dependency API

Main functions in dependencies.js.

It should be a quick one. To test, just create a simple timeline, and call the dependency functions a couple of times to see if you get the expected output. You need to test mainly getEventsBefore() and getEventsAfter(). They in turn call getDependencyMaps().