Parse conditions data, fixes #382
Provide conditions data to UI
Add conditions template, fixes #384