Port arm's tor config utils

Arm has tor configuration utilities for both reading the man page contents and validating the user's torrc. We should port these to stem and add unit/integ tests.