Add support for database boundaries

Database boundaries need the extra step of retrieving the underlying database curve before it can be treated like any other entity with respect to "getExtents".
Add support for getSelectedEntities functionality

This commit allows the script to be run on the entity(ies) selected at
runtime. If there are no entities selected, the user is prompted for a
selection.
White space cleanup