Changed alias functionality.

Aliases should now start with
'%{' and end with '}'. This change makes it possible to combine aliases
with other aliases and/or text.
Also added tests for this functionality.

Related to #42