Added new hook.json endpoint. Fixed payload builder to only build once. Added new stop build endpoint. Fixed issue with saving branch.