Testing Model

Added testing code to index.php and creating working model for testing
asei js and php.

One issue was found in asei.js when attempting to disconnect from an
already destroyed EventSource object. A error handler was added to
prevent the error.

An update to asei.js was also made when handling 'error' and 'close'
events from the server where this.disconnect() will now directly
handle both events.