Added implementation for pop and push message function(tentative).  Long polling is not implemented yet.