Qae1030 pdf generation corrects

* Better handling of conditions
* Refactoring
* Rspecs fixing
Minor thing:
I guess 

```ruby
case question.delegate_obj
when QAEFormBuilder::UploadQuestion
# ...
```
should work as well.