Refactor integration tasks to handle production and staging apps

Fix #93 and #91