Use a new twister-rpc function to wrap all calls

This method encapsulates the connection and closes it too, so there
won't be processes left behind.
Performance wise, this is probably not the smartest thing to do, but
that is of no concern at this time.