always return a number from galleryLength
don't over jqueryfiy element
better name for media interface
made a type while fixing typo!
deglobalize media model and put it under Article model
small fixes for media lightbox controller
fixes for unit tests