Re-factor each resource implementation into separate file

We are adding code for different resources and v1.py is growing. It will
be better to have each resource implementation in a separate file.

Change-Id: Ibc1a3523ed4545c02b437540aec7b063b9e2c87f