Load rule from pattern file
Several UI improvments
Change large closure to prototype pattern for profit and speed
Cache empty tree, improves loading speed for large patterns