Fix possibly undefined array key.

Instead of getting all the URL parts, only get the path since that's
all we're interested in.

Also switched cpabc_appointment_get_FULL_site_url() to use cpabc_appointment_get_site_url()
instead of duplicating code, and improved whitespace & WP coding standards a bit.