Improve preformance by inlining the most often called functions.

This reduces the time to analyze the complete TOR source code on my
machine from ~40 to ~25 seconds. Plus minor clean-ups.