More work on libraries and modules.
Added pagination library.