implement edit reverse, direction change and add specification for push and pop to editring

Signed-off-by: Mattias Andrée <maandree@operamail.com>