Fix autorebase so that it pulls first and force pushes at the end.

Fix websocket so that it can take an argument for simnet/mainnet and connect to the correct ports