Added ability to define PostName. Fixes #442

Moved postname parameter to end of parameter list. Moved basename logic to constructor.

Fixed tests.
Merge remote-tracking branch 'travelton/PostNameFix'
Fixing docblock argument order