Fixed bug in root node that made it look like a column reference.

Change-Id: I4e8cbc3b41cab7154b0fa5e9a8ce6bb69d05806e
initSelectableAttribute(): added support for ReferencedColumn targets

Change-Id: I2c0ea26fd7bdb9b4f1e1dbe526902afb3e33abe0
Added option to convert a session state into a template.

Change-Id: I550effd3c48a57e7892fbb9b180974eed448e2da