/listings/add now has input validation and attempts to post an ajax request with the listing.
Added a helper method jsonify to reduce repetition of code.