Casting times formatted with either a "Z" or a time zone offset

The casting of strings to Time in persistence/attributes.rb assumed strings with a trailing "Z" (i.e. in UTC time). This pull request adds support for strings with a time zone offset (e.g. +01:00).