Fix http/ws API broken in previous commits.

Hi,
There were some missing bits in the last refactoring.

It also includes some diffs in net_skeleton.c caused by making modules/ .
I'll setup a pre-commit hook that ensures the generated net_skeleton files are actually generated from modules/