Adding new Lua libraries: bitop and json

This commit is part of a greater investigation on a bug reported by
Fuuzetsu about mpv and Youtube support. But the libraries are useful
by themselves.