Firefox extension support

This is a start to the FireFox extension work, adds in compatibility and tests