Fix as_dict parameter in Component controllers

* Added missing parameter in as_dict call for ComponentsController.post
* Replaced objects.registry.Plan by objects.registry.Component parameter
in as_dict call for ComponentController.put

Change-Id: I179b5271e87a71f4c92722183f64cbb47fcc5e26
Merge "Fix as_dict parameter in Component controllers"