adaptations for ajax v0.3.0
checking options instead of this causing username undefined error
fixed amending Arango instance when options is a string
api(<names>) for selecting API:s to use.