Converted styledict structure

A styletype can now affect any type of widget. Also, StyleError class
was added.