Added methods to determine platform.
Merge pull request #263 from argelius/platform-methods

Platform methods