rearrange settings
clean up: remove the ugly define()'s and update settings page
fix deleting from the firebase
fix empty brackets that occured in some cases
clean up: use json for messages instead of... something... and clean up js code