This also fixes the type of a few fields which were strings instead of numbers.
This replaces announce.sh with a lua script of (hopefully) equal functionality. Using lua generating JSON is much faster than jshn and allows for greater flexibility.