Break up Promotion index sql for the tableview

This follows Site's admin Account/Index.php naming conventions.
Merge pull request #16 from isaacgrant/promo-index-query-subclassing

Break up Promotion index sql for the tableview
Standardise getSQL case
Merge pull request #17 from isaacgrant/promo-index-query-subclassing

Standardise getSQL case
Move promotion code generation into a reusable object.
Add missing license to docblocks.
Merge pull request #18 from isaacgrant/promotion-code-generator

Move promotion code generation into a reusable object.
Fix updating OrderCommissionTotalView as part of a create script.

Cast the returned order total so that column types do not change, and replacing the view works.
Merge pull request #20 from isaacgrant/how-do-you-solve-a-problem-like-maria

Fix updating OrderCommissionTotalView as part of a create script.
Merge pull request #19 from isaacgrant/add-license-to-docblocks

Add missing license to docblocks.
Better promotion prefixing code.

Use array_map with an anonymous functions, aka lambdas, aka closures.

PHP 5.3 is the future... in 2009.
prepare for release of 0.1.4 | package party
Merge pull request #21 from isaacgrant/closures-are-cool

Better promotion prefixing code.