implementing pagination in the frontend, adding bootstrap.ui pagination directive, move glue between calendar and pagination back to controller