started adding Twitter support, made models as_json methods safer