gateway: complete gw setup

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
gateway: reordering of frames

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
gateway: formating and clean up

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>