Updated bower.json to reflect all depedencies and moved program logic into directive definition.