Initial AQL user functions implementation

Also regenerated docs