add API for TQueue TBQueue

This patch adds a simple API for TBQueue/TQueue. In some next patches I'm going to add support for (TMQueue and TBMQueue) and structures itself.