Split the directives into separate files and implemented initial paginator.
Improved pagination.