Return service provider instance from App::register()

Which allow 4.0 user to manually run boot()

Signed-off-by: crynobone <crynobone@gmail.com>
fix phpdoc

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #2799 from crynobone/patch/return-service-provider

Return service provider instance from App::register()
Fix command bug.
Added sort flags
Corrected docblock formatting, and renamed $sort_flags to $options
Merge pull request #2867 from JamShady/pull-request/collection-sortBy-flags

Added sort flag to Collection::sortBy()