Fix style processing to support both inline and external styles.

This will fix style loading to work in all cases.  Now you should be able to concentrate on the actual style processing 

Make sure you review all of this code and that you understand it.  I will answer any and all of your questions, so be sure to ask.