Squashed commits of general refactoring to the segments method.

* Refactor segments method so that it is consitent with the expected values of the segment method
* DRY out the segment method so that it uses the segments method
* Add braces to control structures with a single line
* PSR 2 requires that:

  > The body of each structure MUST be enclosed by braces

  Throw caution to the wind and remove braces from control structures containg a single line

* Revert "Add braces to control structures with a single line"

  This reverts commit 8e56540a4301ede193d3743313487d9f77b457a0.
Eased merging of two MessageBag instances
Fix code style
Enhanced Session Put

Added the ability to put an array, and have it add individual session
items.
Typos
UrlGenerator: When in HTTPS, don't specify port 443
Fixed styling
Updated for phpunit 4.0
Fixed test on new phpunit
Add check for parameter count
fix typos
fix param count for unique and exists
add test
Merge pull request #3793 from anlutro-pull-requests/feature/validation-required-params

Add check for parameter count
Refactored
Comment Edits
Merge branch '4.1' of https://github.com/julien-c/framework into julien-c-4.1
No need for extra check.
Merge pull request #3782 from mlantz/4.1

[Proposal] Enhanced Session Put
Merge branch 'feature/messagebag-merge' of https://github.com/anlutro-pull-requests/framework into anlutro-pull-requests-feature/messagebag-merge