Updated environment parsing to convert sequences.

When parens or square brackets are found in a string, convert the string
into a sequence.
Added test for empty item.

Sequences can end in a trailing comma, so make sure there is an actual
item before adding it to the list.
Merge remote-tracking branch 'baseline/sequence_settings' into django_15