Add recursive dependency fetching to the Makefile

Also small other changes like how we build the PLT.
Add cowboy_websocket:close_code/0

Also fixes a warning.