Promisify wrapper that yields automatic handling of Promise or node-style callback based on invocation parameters.