Remove margin from the notification alerts

Buttons in the 20px bottom margin were inaccessible.
Port cilantro.setup to JavaScript
Refactor ajax error handling logic reported in #422

The real issue was handling aborted requests. A status of '0' denotes
the request was initialized but not yet sent. Aborted requests are
intentional and should not cause error messages to appear.