Use the correct txtorcon API depending on the software version.

This fixes: https://trac.torproject.org/projects/tor/ticket/12747
Merge pull request #53 from TheTorProject/fix/12747

Use the correct txtorcon API depending on the software version.
Refactor oonib's usage of twisted application API
Apply Arturo's fix for 12747