basic auth added
api module extracted from arq extension
small changes