move everything into lib subdirectory

don’t mess around in the root directory.
add package.json

we want to use this with node package manager