rename config constants for consistency
simplify tls async shutdown
adds post_init (tls) and shutdown timers references #226
updates socket policy error handling
defines timers before using them
return error code by value rather than reference