merge permission.js and annottrack.js - will eventually remove permission stuff

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>