Big Improvements

- Split input.js into separate files
- Added support for 3.5 gallery for image / file / gallery

Signed-off-by: Elliot Condon <e@elliotcondon.com>