Replaced commit- and reject command from being represented by integer
values to being represented by the new instruction type in connection.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>