chg: recognize url & profile handling
chg: recognize url & profile handling

- fixed recognize url
- added a more convenient handling of string profile_names
- style cleanups.

weblyzard/weblyzard_api,weblyzard/weblyzard_api,weblyzard/weblyzard_api