Merge pull request #109 from sylae/master

Sychanges now that Sychanges are not messy
Trim all trailing spaces.

No linebreak should be preceded by spaces.
The last merge added some, so I'll use the opportunity
to clean up a few older files as well.
Fix #110: Add a custom.css file

The installer will create an empty custom.css file in the install
destination, which can be used to add custom style rules.
Code style: Add newline after global css sheet.
Rename .messageContainer to .message

The .message class is unused, so there's no need for this.
Fix #105 again: Don't "whisper" info messages.

When everything but groupchat messages gets presented as a whisper,
this includes locally generated info messages.
Solution: Give these messages the new type "local" and exclude them.
Fix #106: Expose JID in CSS classes.

This is a bit complicated. We want to style stuff based on user
identity. This can be done in a limited way by selecting the
title attribute of the span.user element, but it can neither
affect messages (due to missing up-traversal) nor take advantage
of class-selector optimization.

So this patch adds three classes to every div.message and
span.user-roster element (the latter is a new container to allow
adding "user flair" icons without clashing with away icons):

* jid-node-<local>
* jid-domain-<domain>
* jid-resource-<resource>

Any spaces in these values are escaped to \dec character codes.
Rename config.sessionName to config.clientName.

The next patch is going to reuse this string for generating
the JID resource identifier, so it should have a generic name.
Fix #108: Make JID resource configurable (hidden setting).

New settings key: config.settings.xmpp.resource
 default value is {client}/{version}/{timestamp}.

 * {client} becomes config.clientName ("cadence")
 * {version} becomes config.version
 * {timestamp} becomes (new Date()).getTime()

The settings key is not exposed in the UI, but can be set in the JS
console. To force a save, it is enough to toggle any sidebar.
Fix #83: Implement server commands.

This patch implements server commands as defined by XEP-0133.

The syntax is /admin <cmd> <arg>.

Two server commands, announce and set-motd, are added for now.
Note that cadence implements the variant used by ejabberd,
where instead of a "motd" or "announcement" field, a "body" field is
submitted for both commands.
Fix #113: Keep macros out of command history.

When a macro is evaluated, the history should contain
only the original command, not the macro's contents.
Bump version to 1.4
Fix #114: Do not add any leading space on /msg.
Symad

I DONT KNOW WHAT IM DOING
Move snowflake alias to aliases
Fix #116: /msg is broken

Regex for " <nick> <msg>" was incorrectly formatted,
leaving a trailing space on the nickname.
Fix error in config with commit 68c8531
GOD DAMMIT
Merge pull request #118 from calref/master

Syntax error in emoticon aliases.
Fix #122: Disable compression when YUI is missing

The code introduced in 02252ca had a typo.

Also, add a warning that states compression is disabled.