Moved messages.js to notifications.js for better naming
Moved unused GPG js code to it's own file
Create thread.js file for logic pertaining to threads
Moved a bunch of methods (some used) out of mailpile.js into more modular files