added snippets for promises and deferred objects

added snippets for q service, deferred and promise objects