PAC-204. Fix prepare resource bug

Since the that packer must knows about resource type for unpacking.
Processing request and response logic was moved to controller. Also
resource mapping algorithm was improved and moved to resource
module. Packer tests was crashed and temporary disabled.

Change-Id: I305858114b3565cd3048ffbe030522c6395d1ff5