Refactored QueueApi and pushed name param up to MarconiApi.