Added User session inheritance

This is a little bit less messy than base actions defined in metadata.
Added better metadata substitution and...

... metadata inheritance.