Consoldate function wrapping into a TraceKit.wrap()

This removes a lot of duplicate code.
Refs #3 as well.
lol, late night coding
Merge pull request #33 from mattrobenolt/tracekit-wrap

Consolidate function wrapping into a TraceKit.wrap()