Added varying app_ids for different envs
Prevented tabbing if unfinished tabs
Clean up of coffeescript! Out old, in new.