Transferring an H1B to a company that the government thinks is legitimate is very straightforward. I was just hoping to outline the steps to getting a company considered legitimate. So if you can get your company off the ground and considered legitimate (the hard part) then you can have your visa transferred to that company (the easy part).
There are certainly employment contract issues -- moonlighting clauses, non-solicitation, and non-compete agreements. But those all apply to anyone building something on the side while employed full-time.