Move resource config's info fetching to model level

We should not put the resource specefic information in controller
level. Controller is just used to dispatch request and act a glue
of view and model.  We can dynamcially generate the controller code
in future.

Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>