Comments and added missing free
Moving more stuff into functions to keep boilerplate code simple
Removed debug statements
Moving things around slightly
Revert "Moving things around slightly"

This reverts commit c8dd7edb2ccceb594bc1d27fb02ccc9ef0de05d9.
Using loggers now
Added logger to BasicRestletApplicationFactory
Debug statements
Revert "Debug statements"

This reverts commit 05125d4e90f9177408c24d5b1c79fa53f1e05c17.
Synchronized getInstance to try to make sure that it doesn't get called twice while it is trying to initialize