Moved exports code to separate source file.
Merge branch 'middleware' of https://github.com/matix/deeplinker into middleware