create Patterns service, enhance flex styles, add in converters

this needs testing before it can be merged