Mostly nits + jshintrc
+ changed '' do ""
+ added missing {} in one-line if statements
+ indentation fixes to keep 80 character line limit
+ removed additional |if| around debug statements (since they already have it)
+ .jshintrc for future usage, but should not be part of code commited to gecko

Change-Id: Ib24399c075a984e193960b787e656dacdff0af2f
removing ipc in session check

Change-Id: I5f5119d422ea27e748d45b853c99100522e00a9a