Cleanup actions files

1. Move all /platform api to actions/platform.js

2. Fix jslint error.