Add methods to send values in bulk

Two changes here:
 * Methods to send values in bulk in one connection to save server resources.
 * Don't use die() in lib.