moving threads API to its own module
moving variable API to its own module
echo API is in its own module. also forgot to add files from previous commits.
moving interactive mode to a command