Newly opened files are always the latest activated tab now

The newest opened tab is always the current tab now, the mechanism is
derived from the scope itself. Also removed some useless attrs in
ng-repeat.