Bug 944621 - Check for addon path and format. Raises appropriate errors.

This is the fox for bug 944621. The file not_an_addon.txt under mozprofile/tests/files is to test the invalid add-on format conditions. The tests are included in test_addons.py