Move external libraries to `lib` folder, update devDependencies