Add init() tests before shell injection.
Refactor the attach click handler code.

Moved it to the Shell prototype and added the appropriate tests.
Remove '.' from css class constants in tests.

This makes the "className = " statements correct though now $('class')
statements must now prepend the dot manually.
Properly reset in init() tests.
Add init test before request.
Move resource creation from init to request module.
Add remaining init tests (besides keep-alive).
Move shell root element selector into constant.
Stub resourceCreation more extensibly.

It can either succeed or fail based on a global variable.
Test shell keepAlive init.
Merge pull request #110 from mcomella/test_init

Test mongo.init()