Improvement on exceptions throwing and handling

* Created exceptions classes for framework, wares 
  and application exceptions
* Cleaned code

(closes OpenFLUID/openfluid#3)