Move quote_value_as_perl into Context.pm which is the only place that uses it
Add support for 'use $module (@$imports)' to Context.pm
Add *-thread variants to tests if the perl supports useithreads.