Alert or success message on newsletter subscription form

- Meaningful HTTP responses
- Set content type to JSON
- Move scripts to the end of the page for faster page load

Missing styles.
Fix indentation