/doability abilityname
/autoattack 1
/target groupmember#
/assist groupmember#
/assist %t
Can be used to make macros that do most of what you mensioned.
Its also possible to code buttons in XML that will do different things based on your curent stats, like target you and cast a heal if health is less than 50%, cast a nuke if over 50%
