Resolve BOLT_PROJECT_ROOT_DIR from parent directory of bootstrap.php, fixes #1526
Move lib.php one level up to app/

Fixes #1527
Update lib.php path in libTest.php
Create primary (first-stage) loader for runtime environment checks

Begins #1531
Add newline to end of bootstrap.php
Modify front controller to call primary loader
Modify Nut to call primary loader
Add load chain test to ensure that load.php invokes bootstrap.php
Wrap the bootstrapper in a closure which returns $app back out
Merge #1526
Merge #1527

Conflicts:
	app/bootstrap.php
Merge #1531

Conflicts:
	app/bootstrap.php
Merge #1530

Conflicts:
	app/bootstrap.php
Reformatting and refactoring

Removed superfluous newlines
Fixed indention
Replaced double with single quotes
Clarified load chain test comment
Merge pull request #1537 from adrianguenter/boot_updates

Boot updates