Added common libraries defining queries, commands and events.
Removed files.