#258 allow filesystem for amps
fixing binary corruption issue when capturing existing app
adding support for passing through REST extention errors
added a helper method to throw http errors from a controller
#266 don't rely on the rewriter for unit tests to work
#266 pass through calls to test/default.xqy
#266 JSHint cleanup
#271 changing role-names to role-name
Fixed #272: rearranged setup:create-roles to allow cross-refs between rols