Refactor the code to match the openstack code structure.

Used the openstack cookiecutter template to generate all the
files necessary.