Merge branch 'origin/master'
Don't escape sortorder if it is for RAND() or RANDOM()
Attempt to fix broken insertion of JavaCript in
\Bolt\Extensions::insertAfterJs()
In an extension, calling the following causes the passed JS to be
inserted inside the last <script></script> block:
$this->insertSnippet(SnippetLocation::END_OF_BODY, $js );

And example of this is enableing the Google Analytics and RateIt
extensions, the RateIt code will be inserted inside the GA script block
(assuming Google Analytics is listed before RateIt in the
'enabled_extensions' config parameter)
Moving upwards some deprecated calls.
Some minor PHPDoc fixes
Tiny class name qualification fixes.
Merge pull request #979 from rixbeck/master

error: The "profiler" extension is not enabled in "@WebProfiler/Collector/request.html.twig" at line 77.
Merge pull request #980 from GawainLynch/hotfixes/RAND

Don't escape sortorder if it is for RAND() or RANDOM()
Merge pull request #983 from petsagouris/small-fixes

Small fixes
Manually reverting #979 for now, in order to fix it properly. :-)
Amended with change suggested by Bob.
Merge pull request #981 from GawainLynch/hostfixes/RegExFix

Attempt to fix broken insertion of JavaScript in extensions
Merge github.com:bolt/bolt into feature/Cron