change ami send behaviour

- do a case insensitive check for an actionid
- return the actionId from the ami send function