Refactored sidebar behaviour

JS : added hmEvents scope object for sidebar behaviour depending on the
event (drag / wipe / tap)
Html : cleaned some unused attrs