Allow passing publish callback as last argument of emit
Merge pull request #7 from 7eggs/emit-callback

Allow passing publish callback as last argument of emit