misc changes
started on Angular-based client and added the general purpose bucket algorithm