fix errors related with using undefined variables and methods in framework/directives/sliding_menu.js

Hi guys, your current build is broken. You use $templateCache as function in framework/directives/sliding_menu.js but it is an object, so it throws exception.
Also, I assume because of "copy-past" some code, you have some undefined variables 
in sliding_menu.js. But the biggest problem is that it is impossible to use onsen with requierjs application. If I try to create requirejs shim for onsenui, I get exception, "Hammer is undefined", because Hammer.js is loaded as AMD in this case, but you expects it as static module.

This pull request solves all problems described above.

As a "hotfix" I just removed support of AMD loading from framework/lib/hammer.js, but 
to solve this problem in appropriate way I can suggest either exclude hammer.js from build and add it as dependency or fork it, remove AMD and reference to your own hammer.js fork.