Simple code for placing boxes into panels.
Remove unused sprintf libraries.
Sync changes from head.
When adding an event to the timeline, call the generic Panel/Box logic to position and insert the actual event box.