remove obsolete code
upgrade angular to v1.2.0rc1