Some useful services and directives for Angular.js