PRIVATE and PUBLIC constants renamed...
Application class added and constructor now explodes the URL to something useful.
URL is sanitized.