Refactoring of the UI classes.

1.) CS::PDF application now uses the UI classes.

2.) IDs and Layers of page items are now enums.