npm: move sqlite3 to a dev/optional dependency

We need it for development because it is needed for tests. However,
there is absolutely no need for it in production.
npm: make nodecastor an optional dependency
npm: make memwatch an optional dependency