Move definitions of service and replicationController to avoid forward references

To address issue https://github.com/GoogleCloudPlatform/kubernetes/issues/363