Refactoring exception handling

Distinction between task related exceptions and fireworks processing exceptions.
Serialization of informations from exceptions implementing to_dict() method.