rose edit: speed up slow loading-up code

This halves the initial load time for a large configuration by:
 * decreasing the number of calls to expensive functions
 (`load_vars_from_config`, `_get_config_sections`)
 * caching simple input-output relationships for parsing trigger expressions.

@matthewrmshin, please review.