Refactoring Action template into sub templates + code cleanup + bug fixes
code reorganization for voting
JS reorg for actstream
integrating changes with local