Fixed warnings: comparisons between unsigned and signed integers.
Fixed warning: multiple accesses to weak variable.

Not a huge deal in this case, but it's always a good idea to get a strong reference to the object we only have a weak reference to so that it can't go away half-way through the execution of a block (which in some cases can cause bugs that are super hard to track down)
Fix indentation
Merge branch 'master' of github.com:JaviSoto/FLEX into feature/custom-global-entries
Made the static application window reference __weak so that we don't keep it around longer than it exists.
Not breaking method declarations in multiple lines for consistency
Naming future what's a future for clarity.
Double ;;