Use getattr properly in legacy shell

Fixes bug 1131703

Change-Id: If97f422af170c29785d2bf8884fafff979031e14
Replace SchemaNotFound with HTTPNotFound

Fixes bug 1131682

Change-Id: I615acbef0411677cae5d30262702babd900c0c81
Merge "Use getattr properly in legacy shell"