Cleanup actions files

1. Move all /platform api to actions/platform.js

2. Fix jslint error.
Merge pull request #284 from Ghost141/api_cleanup

Cleanup actions files