remove cyclic require-dependency between parser and resource

See http://selfcontained.us/2012/05/08/node-js-circular-dependencies/

This change fixes the 'Object is not a function' bug when the HAL object
has embedded resources.
copy non-hal properties to created resource