added events package. TODO: refactor and get ngtable figured out