Allow priority flag for ajax requests

New request will be processed after the on-going request.