Add tools.mk file for better dialyzer support

Add the new tools.mk file that all the other repos are using now.
Move edoc to top of module

Move the edoc to the top of the module so that doc target doesn't fail.
Merge pull request #52 from basho/rz/new-dialyzer-targets

Add tools.mk