API for Plugins (solves #22)

- includes logging macros and turns them to functions
- exports customized types
Merge pull request #32 from rebar/plugin-api

 API for Plugins (solves #22)