Change the behaviour of the rest/ajax API to use POST when destructive behaviour (everything but a get action)