Adds command macros

For #1129.

This PR moves shortcut commands to the scripting module, and adds a rudimentary macros system. It uses the same parser as the current login/respawn event scripts.