Various additions and enhancements
- Completed cookie handling
- Added session handling
- Began application event handling (placeholders only)
- Added debugging