Added rebar.
Added erlang source.
Working service.
Getting phantomjs running and returning html.
Total refactor. Removing nginx. Using cowboy as web server correctly.