Created Insource library

Began refactoring Imgur code into a separate library.
Finished refactoring Insource. added tests.