Clean up and modernization

Cleaned up and added devDependencies and scripts to package.json. Set "createClient" as the exports function for a nicer API.