Queue for ajax calls with support for prioritetization