Feature/policies

Forked from https://github.com/cloudtools/troposphere/pull/157

With pep8 fixes.

cc @llinder