adapt to erlang.mk/relx
port to new cowboy API
add erlang.mk build process