Added some convenience methods to compute duration and starttime etc.
Added serializable properties, so the 'old' study wizard keeps working
for now
Removed null constraints and unnecessary join tables