Added short circuited threading operator
Moved routing related functions into own namespace