fix foreach error prior to API setup, fix js for validate api key
Merge branch 'master' of https://github.com/Bookt/WP-InstaSites