Fixed empty folder deleting in Local mediaHandler

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added categories to the media library

Signed-off-by: Tom Wright <tom@inflatablecookie.com>