build: import erlang.mk

- uses erlang.mk with upstream patch #139 for common_test support
- removes script creation but this can be added into erlang.mk relatively easily
docs: update for new build process
build: reindent tests too