environments support

 * created simple test environment
 * set up ugly system for environments
 * may break Mono and VS support, not tested yet