promisify

Create a function to turn any function into a "promisfied" function. Any function to be promisified will always have a callback as the last argument.…