Heavy refactoring, lots of error notifications, constructor etc

Check example for details:
```
<table class="wikitable sortable">
<tr><th>Header 1</th><th>Header 2</th><th>Header 2</th><th>Header 2</th></tr>
<tr><td align="center">{{#df:type|object=BUILDING_WORKSHOP
|obj_cond=BUILD_ITEM:BLOCKS
|tag_cond=NAME;BUILD_KEY;DIM;BUILD_LABOR
|padding=&://&</td><td align="center">//&</td align="center"></tr><tr><td align="center">
|filename=Masterwork:building_masterwork}}
</td></tr></table>
```