Fixed or silenced linting errors

As discussed in https://github.com/kaepora/miniLock/issues/85, I have made the following changes to the non-minified code:
1. Either fixed or explicitly silenced all JSHint warnings
2. Fixed most JSLint warnings, excluding terminating semicolons
3. Using tabs for all indentations
4. All "if" and "for" statements are now using blocks