Allow circular references and ignore them when they become circular
support media queries in extend chaining. Also tidied up. Fixes #1213
Alpha update
Make alpha release a beta release