Support setting application_name via init_sa:
http://stackoverflow.com/a/15691283