include state in format_error/2
support proper return value of ec_git_vsn of {ok, string()}
Merge pull request #251 from tsloughter/master

Bug fix and cleanup