Added arrow and close templates

this way individuals can specific the markup themselves
Fixed bug with loading class

realized I have the loading class on the wrong element, moved it too
popover-container where it belongs
fixed bug with jqXHR abort