Removed require.js dependency from jasmine tests
Refactoring and a new 'expired' bahavior. Also added some documentation.
Moved behaviors to their own modules.