base: Implement a AMD loader

This is a standard AMD loader for loading modules with dependencies
and asynchronous loading.

https://github.com/amdjs/amdjs-api/wiki/AMD
base: Test AMD using the standard amdjs-tests suite

https://github.com/amdjs/amdjs-tests

We use the basic and anon tests.
server: Use AMD async loading for the terminal component

Closes #1370
base: Quieter messages when not loading via https

We return a 'no-cockpit' problem for callers anyway.