Closes #18 Added an ajax request to the WMS service provider before sending the layer activation event. If there is an error when requesting this tile the activation event is not send. Also added the status code for ajax error messages when it is not equal to 0 (which happens when it is an browser internal problem such as no cross origin headers)