Adds filter by machine name to interface terminals
Adds filter by pattern to the interface terminals

Some code cleanup
Some performance or memory optimizations

Replaced String concat in loops with StringBuilder (performance)
Replaced for with keySet + Map.get() through for with entrySet (perf)
Changed inner classes to static classes, mostly struct like (memory)
Merge pull request #203 from yueh/feature-129

Adds filter by machine name to interface terminals
Merge pull request #207 from yueh/performance-optimizations

Some performance or memory optimizations