Split minion
Shorten variable name
Simplify helpers
Move prefix methods
Rename methods and move parseTimeout
Rename write -> writeJSON
Split operations code and add comments