Adapts pricing.attach to use OOP pattern

pricing.attach is now a factory for the local Attachment object prototype

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>